<?php
html::printPath(array(
        'seminar.form-title' => 'admin/seminar/all', 
        $seminar['name'] => '/admin/seminar/display?id=' . $seminar['id'],
        'seminarOrgPayment.listing' => 'admin/seminarOrgPayment/listing?seminar_id=' . $seminar['id'],
		'application.page-title-display' => '',
    )
);
$msg->printMessages();

echo html::entityInfoIcon('seminar_org_payment', $seminarOrgPayment, 'id');

if (! $paymentAcceptance['confirmed_at']) { ?>
	<ul class="commandList">
	    <li class="deleteLi"><?php echo html::anchor('admin/seminarOrgPayment/delete?id=' . $seminarOrgPayment['id'], text::get('seminarOrgPayment-deleteThis'), array('onclick'=>'return confirmDeletion()')) ?></li>
	    <li class="editLi"><?php echo html::anchor('admin/seminarOrgPayment/edit?id=' . $seminarOrgPayment['id'], text::get('seminarOrgPayment-editThis')) ?></li>
	</ul>
	<?php
}
else {
	echo '<p class="infoNote">' . text::getEscaped('seminarOrgPayment-cannotBeModified-locked') . '</p>';
}

$fb = new FormBuilder('seminarOrgPayment', $seminarOrgPayment);
$fb->displayOnly();
$fb->integer('id')->identifyingValue();
$fb->text('organization_name')->labelKey('organization_id');
$fb->price('amount', $seminarOrgPayment['currency_code']);
$fb->text('payment_identification');
$fb->date('received_on');
$fb->textarea('notes');
$fb->submitButton();
$fb->write();
